﻿import request from '/@/utils/request';
enum Api {
  AddRoadStructure = '/api/roadStructure/add',
  DeleteRoadStructure = '/api/roadStructure/delete',
  UpdateRoadStructure = '/api/roadStructure/update',
  PageRoadStructure = '/api/roadStructure/page',
  DetailRoadStructure = '/api/roadStructure/detail',
}

// 增加路面结构数据
export const addRoadStructure = (params?: any) =>
	request({
		url: Api.AddRoadStructure,
		method: 'post',
		data: params,
	});

// 删除路面结构数据
export const deleteRoadStructure = (params?: any) => 
	request({
			url: Api.DeleteRoadStructure,
			method: 'post',
			data: params,
		});

// 编辑路面结构数据
export const updateRoadStructure = (params?: any) => 
	request({
			url: Api.UpdateRoadStructure,
			method: 'post',
			data: params,
		});

// 分页查询路面结构数据
export const pageRoadStructure = (params?: any) => 
	request({
			url: Api.PageRoadStructure,
			method: 'post',
			data: params,
		});

// 详情路面结构数据
export const detailRoadStructure = (id: any) => 
	request({
			url: Api.DetailRoadStructure,
			method: 'get',
			data: { id },
		});


